package cn.cvs.dao.impl;

import cn.cvs.dao.SysUserMapper;
import cn.cvs.pojo.Supplier;
import cn.cvs.pojo.SysUser;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class SysUserMapperImpl extends SqlSessionDaoSupport implements SysUserMapper{


    private SqlSessionTemplate sqlSessionTemplate;

    @Override
    public List<SysUser> selectSysUserList(SysUser sysUser) {
//        return this.getSqlSession.selectList("cn.cvs.dao.SysUserMapper.selectSysUserList",sysUser);
        return this.getSqlSession().selectList("cn.cvs.dao.SysUserMapper.selectSysUserList",sysUser);
    }

    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        this.sqlSessionTemplate = sqlSessionTemplate;
    }
}
